package chpt05;

interface Roarable{
	default void bark() {
		System.out.println("吼叫!");
	}
	default void shout() {
		System.out.println("喊叫");
	}
}
interface Shoutable{
	default void shout() {
		System.out.println("大声喊叫!");
	}
}
class Animal{
	public void bark() {
		System.out.println("Animal大叫");
	}
}
class Dog extends Animal implements Roarable, Shoutable{

	@Override
	public void shout() {
		Shoutable.super.shout();
	}	
}
public class AnimalTest {

	public static void main(String[] args) {
		new Dog().bark();

	}

}
